Integrand size = 21, antiderivative size = 71 \[ \int \frac {x (a+b \arctan (c x))}{\left (d+e x^2\right )^{3/2}} \, dx=-\frac {a+b \arctan (c x)}{e \sqrt {d+e x^2}}+\frac {b c \arctan \left (\frac {\sqrt {c^2 d-e} x}{\sqrt {d+e x^2}}\right )}{\sqrt {c^2 d-e} e} \]
[Out]
Time = 0.05 (sec) , antiderivative size = 71, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {5094, 385, 209} \[ \int \frac {x (a+b \arctan (c x))}{\left (d+e x^2\right )^{3/2}} \, dx=\frac {b c \arctan \left (\frac {x \sqrt {c^2 d-e}}{\sqrt {d+e x^2}}\right )}{e \sqrt {c^2 d-e}}-\frac {a+b \arctan (c x)}{e \sqrt {d+e x^2}} \]
[In]
[Out]
Rule 209
Rule 385
Rule 5094
Rubi steps \begin{align*} \text {integral}& = -\frac {a+b \arctan (c x)}{e \sqrt {d+e x^2}}+\frac {(b c) \int \frac {1}{\left (1+c^2 x^2\right ) \sqrt {d+e x^2}} \, dx}{e} \\ & = -\frac {a+b \arctan (c x)}{e \sqrt {d+e x^2}}+\frac {(b c) \text {Subst}\left (\int \frac {1}{1-\left (-c^2 d+e\right ) x^2} \, dx,x,\frac {x}{\sqrt {d+e x^2}}\right )}{e} \\ & = -\frac {a+b \arctan (c x)}{e \sqrt {d+e x^2}}+\frac {b c \arctan \left (\frac {\sqrt {c^2 d-e} x}{\sqrt {d+e x^2}}\right )}{\sqrt {c^2 d-e} e} \\ \end{align*}
Result contains complex when optimal does not.
Time = 0.33 (sec) , antiderivative size = 210, normalized size of antiderivative = 2.96 \[ \int \frac {x (a+b \arctan (c x))}{\left (d+e x^2\right )^{3/2}} \, dx=-\frac {\frac {2 a}{\sqrt {d+e x^2}}+\frac {2 b \arctan (c x)}{\sqrt {d+e x^2}}+\frac {i b c \log \left (-\frac {4 i e \left (c d-i e x+\sqrt {c^2 d-e} \sqrt {d+e x^2}\right )}{b \sqrt {c^2 d-e} (i+c x)}\right )}{\sqrt {c^2 d-e}}-\frac {i b c \log \left (\frac {4 i e \left (c d+i e x+\sqrt {c^2 d-e} \sqrt {d+e x^2}\right )}{b \sqrt {c^2 d-e} (-i+c x)}\right )}{\sqrt {c^2 d-e}}}{2 e} \]
[In]
[Out]
\[\int \frac {x \left (a +b \arctan \left (c x \right )\right )}{\left (e \,x^{2}+d \right )^{\frac {3}{2}}}d x\]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 173 vs. \(2 (63) = 126\).
Time = 0.32 (sec) , antiderivative size = 379, normalized size of antiderivative = 5.34 \[ \int \frac {x (a+b \arctan (c x))}{\left (d+e x^2\right )^{3/2}} \, dx=\left [-\frac {{\left (b c e x^{2} + b c d\right )} \sqrt {-c^{2} d + e} \log \left (\frac {{\left (c^{4} d^{2} - 8 \, c^{2} d e + 8 \, e^{2}\right )} x^{4} - 2 \, {\left (3 \, c^{2} d^{2} - 4 \, d e\right )} x^{2} - 4 \, {\left ({\left (c^{2} d - 2 \, e\right )} x^{3} - d x\right )} \sqrt {-c^{2} d + e} \sqrt {e x^{2} + d} + d^{2}}{c^{4} x^{4} + 2 \, c^{2} x^{2} + 1}\right ) + 4 \, {\left (a c^{2} d - a e + {\left (b c^{2} d - b e\right )} \arctan \left (c x\right )\right )} \sqrt {e x^{2} + d}}{4 \, {\left (c^{2} d^{2} e - d e^{2} + {\left (c^{2} d e^{2} - e^{3}\right )} x^{2}\right )}}, \frac {{\left (b c e x^{2} + b c d\right )} \sqrt {c^{2} d - e} \arctan \left (\frac {\sqrt {c^{2} d - e} {\left ({\left (c^{2} d - 2 \, e\right )} x^{2} - d\right )} \sqrt {e x^{2} + d}}{2 \, {\left ({\left (c^{2} d e - e^{2}\right )} x^{3} + {\left (c^{2} d^{2} - d e\right )} x\right )}}\right ) - 2 \, {\left (a c^{2} d - a e + {\left (b c^{2} d - b e\right )} \arctan \left (c x\right )\right )} \sqrt {e x^{2} + d}}{2 \, {\left (c^{2} d^{2} e - d e^{2} + {\left (c^{2} d e^{2} - e^{3}\right )} x^{2}\right )}}\right ] \]
[In]
[Out]
\[ \int \frac {x (a+b \arctan (c x))}{\left (d+e x^2\right )^{3/2}} \, dx=\int \frac {x \left (a + b \operatorname {atan}{\left (c x \right )}\right )}{\left (d + e x^{2}\right )^{\frac {3}{2}}}\, dx \]
[In]
[Out]
Exception generated. \[ \int \frac {x (a+b \arctan (c x))}{\left (d+e x^2\right )^{3/2}} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
\[ \int \frac {x (a+b \arctan (c x))}{\left (d+e x^2\right )^{3/2}} \, dx=\int { \frac {{\left (b \arctan \left (c x\right ) + a\right )} x}{{\left (e x^{2} + d\right )}^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {x (a+b \arctan (c x))}{\left (d+e x^2\right )^{3/2}} \, dx=\int \frac {x\,\left (a+b\,\mathrm {atan}\left (c\,x\right )\right )}{{\left (e\,x^2+d\right )}^{3/2}} \,d x \]
[In]
[Out]